package com.wn.class30;

import com.wn.class30.tools.WuLiuTools;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import javax.sql.DataSource;

@SpringBootApplication
@EnableSwagger2
@MapperScan("com.wn.class30.mapper")
@ImportResource("classpath:transaction.xml")
@EnableScheduling
public class Class30Application {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(Class30Application.class, args);
        DataSource dataSource = context.getBean(DataSource.class);

       /*try {
            String sto = WuLiuTools.getWuLiuMessage("773030377897644", "sto");
        } catch (Exception e) {
            e.printStackTrace();
        }*/

    }

}
